# -*-coding:utf-8 -*-
# File  : orgUserUpdate_api.py
# Time  ：2021/11/23 10:51
# Author：author name


from api.manage.manage_base import ManageBase


class OrgUserUpdateApi(ManageBase):
    def __init__(self, real_name, phone, role_id, org_id, is_financial_id, user_id):
        """
        机构用户更新接口
        :param real_name:
        :param phone:
        :param role_id:
        :param user_id:
        """
        super().__init__()
        self.url = self.host + "cloudlottery-manage/orguser/update"
        self.json = {"sceneType": "VEHICLE", "realname": real_name, "phone": phone,
                     "email": "17665340000@qq.com", "remark": "", "isSystemUser": 0,
                     "roleId": role_id, "orgId": org_id,
                     "site": 0, "isFinancial": is_financial_id, "id": user_id}
        self.method = "put"
